/*
 * @Author: C.
 * @Date: 2023-02-03 09:48:38
 */
import { filterMap, FilterEnums } from '../../maps/filters/index';
export function dataHandle(text, filter: FilterEnums = 'default') {
  return filterMap[filter].func({ text });
}
export function dataFunc(column) {
  const func = filterMap[column.filter || 'default'].func;
  return (text, record, index, type = 'default') => {
    return func({ text, record, index, column, type });
  };
}
export function dataRecordFunc(column) {
  const func = filterMap[column.filter || 'default'].func;
  return func;
}
